package com.glela.order.service;

import java.util.List;

import org.springframework.http.ResponseEntity;

import com.glela.goods.model.request.GoodsCommentRequest;
import com.glela.goods.model.request.RequestGoodsCommenntBaseModel;
import com.glela.goods.model.vo.goods.GoodsCommentVo;
import com.glela.platform.model.response.ResponsePageModel;

public interface GoodsCommentService {

	/**
	 * 查询商品评论列表
	 * @param goodId
	 * @return
	 */
	public ResponsePageModel<GoodsCommentVo> listGoodsCommentByGoodId(GoodsCommentRequest request);

	/**
	 * 添加商品评论
	 * @param goodId  商品id  必输
	 * @param userId  用户id  必输
	 * @param commentText  内容必输
	 * @param image1  图1  
	 * @param image2  图2
	 * @param image3 图3
	 * @param specName   产品规格名称组合 必输
	 * @return
	 */
	/*public ResponseEntity<?> addGoodsComment(long goodId, long userId, String commentText, String image1, String image2,
			String image3,String specName);*/
	
	/**  MaoZeYao **/
	/**
	 * 商品评论
	 * @param userId
	 * @return
	 */
	public ResponseEntity<?> increaseTheCommodityComments(Long userId, Long orderInfoId, List<RequestGoodsCommenntBaseModel> models) throws Exception;

	public ResponseEntity<?> findCanCommentOrderList(Long userId, Long orderInfoId);

}
